<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>7</title>
</head>
<body>
<script>
    /*在控制台打印出一个四行五列的长方形,用*表示
    *****
    *****
    *****
    *****
     */
    var str="";
    for (let i = 0; i < 4; i++) {
        for (let j = 0; j <5; j++) {
            str+="*";
        }
        str+="\n";
    }
    console.log(str);




</script>
</body>
</html>